def calculate_electricity_usage():
    # 初始化一个列表，用于存储三个人的用电量
    electricity_usage = []


    for i in range(3):

        power_and_time = input(f"请输入第{i+1}个人的电器用电功率（单位w）和用电时长（单位h），用逗号分隔：")
        power, time = map(float, power_and_time.split(','))


        usage = (power * time) / 1000
        electricity_usage.append(usage)


    for i, usage in enumerate(electricity_usage, 1):
        print(f"第{i}个人的每月用电量是：{usage:.2f} kw•h")

# 调用函数
calculate_electricity_usage()
